package org.crspta.gohomenotes.domain;

import javax.persistence.ManyToOne;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(finders = { "findSchoolClassesByTeacher", "findSchoolClassesByGrade" })
public class SchoolClass {

    @ManyToOne
    private SchoolGrade grade;

    @ManyToOne
    private Person teacher;
    
    public String toString() {
    	return "School Class";
    }
}
